Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integration: fix SerialConsistencyTests #186

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

muzarski
Copy link
Collaborator

@muzarski muzarski commented Oct 9, 2024

Motivation

Original cpp-driver allows user to SET the invalid serial consistency.
Then, the request is sent with an invalid serial consistency, resulting in a server error.
However, rust-driver comes with a type safety in this matter, disallowing
the user to set invalid serial consistency, thus we are not able to mimic this behaviour in cpp-rust-driver.
We need to adjust the integration test, and assert that setting the invalid serial consistency fails with an error.

Changes

Adjusted one test in SerialConsistencyTests suite, and enabled the test suite in CI.

Pre-review checklist

  • I have split my patch into logically separate commits.
  • All commit messages clearly explain what they change and why.
  • PR description sums up the changes and reasons why they should be introduced.
  • [ ] I have implemented Rust unit tests for the features/changes introduced.
  • I have enabled appropriate tests in .github/workflows/build.yml in gtest_filter.
  • I have enabled appropriate tests in .github/workflows/cassandra.yml in gtest_filter.

Original cpp-driver allows user to SET the invalid serial consistency.
Then, the request is sent with an invalid serial consistency, resulting in a server error.
However, rust-driver comes with a type safety in this matter, disallowing
the user to set invalid serial consistency, thus we are not able to mimic this behaviour in cpp-rust-driver.
We need to adjust the integration test, and assert that setting the invalid serial consistency fails with an error.
We adjusted the test in the previous commit, so now it should be passing during CI.
@muzarski muzarski self-assigned this Oct 9, 2024
@muzarski muzarski merged commit 6a806a7 into scylladb:master Oct 9, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants